package com.zwy.fornote.util;
/**
 *单例模式--保存当前用户
 *
 * @author zhuyi 1205242
 * @version CurrentUser 2021/3/27 19:50
 */
import com.zwy.fornote.model.User;

public class CurrentUser {
    private static User user=null;

    private CurrentUser(){};

    public static User getUser()
    {
        return user;
    }

    public static void setUser(User user1)
    {
        user=user1;
    }

    public static void remove()
    {
        user=null;
    }
}
